import store from "../store"

export const inCreatmentAction = ()=>{
    return {
        type:'inCreatmentCount',
        data:1
    }
}
export const deCreatmentAction = ()=>{
    return {
        type:'deCreatmentCount',
        data:1
    }
}
export const intimeoutAction = ()=>{
    return ()=>{
        setTimeout(()=>{
            store.dispatch({
                type:'inTimeoutCount',
                data:1
            })
        },2000)
    }
}